//
//  QKTSQLite.h
//  Chart
//
//  Created by CaoJun on 15-9-14.
//
//

#ifndef __Chart__QKTSQLite__
#define __Chart__QKTSQLite__

#include "BaseSQLite.h"
#include "QKT.h"

#include <vector>
#include <string>

namespace ytx
{
    class QKTSQLite : public BaseSQLite {
    private:
        static std::vector<QKTItem> transforDataQKT(DBResult & dbResult);
    public:
        QKTSQLite();
        virtual ~QKTSQLite();
        bool insertData(std::string tableName, std::vector<QKTItem> data);
        bool getDataFromDB(std::string tableName, std::vector<QKTItem> * qktItems);
        bool updateData(std::string tableName, QKTItem item);
        bool createQKTDataTableIfNotExit(const std::string tabName);
        bool vacuumDB();
    };

}

#endif /* defined(__Chart__QKTSQLite__) */
